home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem Usage: PR1COL infile
- rem
- rem Reformat the input file to 132 characters/line, then print in 1 column
- rem This should be OK to use with all printers. If 20 cpi mode is supported
- rem consider increasing 132 to a value up to 160 or creating a left margin (/M)
- rem
- if "%1" == "" echo Usage: PR1COL infile
- if "%1" == "" goto end
- if not "%2" == "" echo Usage: PR1COL infile
- if not "%2" == "" goto end
-
- rap %1 /W132 \rap.tmp
- if not ERRORLEVEL EQ 0 goto raperror
- colprint \rap.tmp \colprint.tmp /c1
- if not ERRORLEVEL EQ 0 goto cperror
- print \colprint.tmp
- goto end
- :raperror
- echo Error in RAP processing
- goto end
- :cperror
- echo Error in COLPRINT processing
- goto end
- :end
-